import request from "@/utils/request";

//分页查询工厂信息（带收款计划）
export function pageList(query) {
  return request({
    url: "/mall/admin/collectionPlan/pageList",
    method: "post",
    data: query
  });
}

// 根据选中的节点，获取到对应供应商或者商家节点列表
export function selectNode(query) {
  return request({
    url: "/mall/admin/collectionPlan/selectNode",
    method: "post",
    data: query
  });
}

// 单个编辑工厂收款计划
export function saveOnePlan(query) {
  return request({
    url: "/mall/admin/collectionPlan/plan",
    method: "post",
    data: query
  });
}

//批量编辑工厂收款计划
export function batchUpPlan(query) {
  return request({
    url: "/mall/admin/collectionPlan/batchUpPlan",
    method: "post",
    data: query
  });
}

//返回所有可选的收款节点
export function selectAllNode(query) {
  return request({
    url: "/mall/admin/collectionPlan/selectAllNode",
    method: "post",
    data: query
  });
}

//返回商家所有的可选择的节点
export function selectBusinessAllNode(query) {
  return request({
    url: "/mall/admin/collectionPlan/selectBusinessAllNode",
    method: "post",
    data: query
  });
}
